home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form sai
- BackColor = &H00000000&
- BorderStyle = 0 'None
- Caption = "Form1"
- ClientHeight = 7200
- ClientLeft = 0
- ClientTop = 0
- ClientWidth = 9600
- Icon = "prop.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 7200
- ScaleWidth = 9600
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- WindowState = 2 'Maximized
- Begin VB.Timer Timer2
- Interval = 1
- Left = 1920
- Top = 2310
- End
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Left = 810
- Top = 2220
- End
- Begin VB.Image Image4
- Height = 810
- Left = -3390
- Picture = "prop.frx":08CA
- Top = 5310
- Width = 3465
- End
- Begin VB.Image Image2
- Height = 825
- Left = 2640
- Picture = "prop.frx":9BDC
- Top = 3450
- Width = 4050
- End
- Begin VB.Image Image3
- Height = 1170
- Left = 2460
- Picture = "prop.frx":14A92
- Top = 1170
- Width = 4125
- End
- Begin VB.Image Image1
- Height = 1335
- Left = 780
- Top = 690
- Width = 1395
- End
- Attribute VB_Name = "sai"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' Hi Folks this application is written by
- ' Nagalla Anil Choudary
- ' Software Engineer
- ' s/o N.Ram Babu
- ' D.K.Pallem Bapatla-522 101
- ' A.P , India
- ' u can use this application as a photo album also
- ' You can reproduce , customize this code in any manner
- ' If u satisfy or modify please leave your suggestions
- ' Happy programming
- Dim n, tt As Integer
- Dim oldx, oldy As Integer
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- EndScreenSaver
- End Sub
- Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
- EndScreenSaver
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
- If oldx = 0 And oldy = 0 Then
- GoTo anil
- End If
- If x <> oldx Or y <> oldy Then
- EndScreenSaver
- End If
- anil:
- oldx = x
- oldy = y
- End Sub
- Private Sub Form_Paint()
- Timer1.Interval = Val(prop.Text1.Text)
- End Sub
- Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
- EndScreenSaver
- End Sub
- Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
- If oldx = 0 And oldy = 0 Then
- GoTo anil
- End If
- If x <> oldx Or y <> oldy Then
- EndScreenSaver
- End If
- anil:
- oldx = x
- oldy = y
- End Sub
- Private Sub Timer1_Timer()
- If n = prop.List1.ListCount Then
- n = 0
- End If
- Image1.Visible = False
- Image1.Picture = LoadPicture(prop.List1.List(n))
- Randomize
- Image1.Left = Rnd * (9000 - Image1.Width)
- Image1.Top = Rnd * (7000 - Image1.Height)
- Image1.Visible = True
- n = n + 1
- End Sub
- Private Sub Timer2_Timer()
- Image4.Left = tt - Image4.Width
- tt = tt + 20
- If tt > 13000 Then
- Image3.Visible = False
- Image2.Visible = False
- Image4.Visible = False
- Timer1.Enabled = True
- Timer1.Interval = Val(prop.Text1.Text)
- Timer2.Enabled = False
- End If
- End Sub
-